// ml:run = $bin < input
#include <iostream>

int main()
{
    std::ios_base::sync_with_stdio(false);
    int n, c; std::cin >> n >> c;
    int prev = 0, count = 0;
    for (int i = 0; i < n; i++) {
        int x; std::cin >> x;
        if (x - prev > c) count = 1;
        else count++;
        prev = x;
    }
    std::cout << count << "\n";
}

